#[cfg(windows)]
extern crate winres;

#[cfg(windows)]
fn main() {
    let mut res = winres::WindowsResource::new();
    res.set_manifest(r#"
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <application xmlns="urn:schemas-microsoft-com:asm.v3">
        <windowsSettings>
            <ms_windowsSettings:heapType xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2020/WindowsSettings">SegmentHeap</ms_windowsSettings:heapType>
        </windowsSettings>
    </application>
</assembly>
"#);
    res.compile().unwrap();
    
    static_vcruntime::metabuild();
}

#[cfg(not(windows))]
fn main() {
    static_vcruntime::metabuild();
} 